package org.jacp.demo.workbench;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import java.util.Map;

import javax.swing.JMenu;

import org.jacp.api.componentLayout.Layout;
import org.jacp.api.util.WorkspaceMode;
import org.jacp.demo.util.ToolBar;
import org.jacp.swing.rcp.action.SwingAction;
import org.jacp.swing.rcp.componentLayout.SwingWorkbenchLayout;
import org.jacp.swing.rcp.workbench.ASwingWorkbench;

import com.explodingpixels.macwidgets.BottomBarSize;

public class ImageWorkbench extends ASwingWorkbench {

	/**
     * 
     */
	private static final long serialVersionUID = 8311128494696642358L;

	public ImageWorkbench() {
		super("image demo");
	}

	@Override
	public void handleBarEntries(final Map<Layout, Container> arg0) {

	}

	@Override
	public void handleInitialLayout(final SwingAction arg0,
			final SwingWorkbenchLayout layout) {
		// FIXME add to main.xml
		// this.setGlassPane(new GlassPanel());
		// this.getGlassPane().setVisible(true);
		layout.setWorkspaceMode(WorkspaceMode.SINGLE_PANE);
		layout.setLayoutManager(new BorderLayout());

		layout.registerToolBar(Layout.NORTH, new ToolBar(FlowLayout.LEFT,
				BottomBarSize.LARGE));
		layout.registerToolBar(Layout.SOUTH, new org.jacp.demo.util.BottomBar(
				FlowLayout.RIGHT, BottomBarSize.LARGE));
		layout.setWorkbenchXYSize(1280, 1024);
	}

	@Override
	public JMenu handleMenuEntries(final JMenu arg0) {

		return null;
	}

}
